﻿using AyFrame.Common.Enums;
using AyFrame.DbEntity.ColumnAttributes;
using AyFrame.DbJsonModel;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AyFrame.DbEntity.Models
{
    [SugarTable("Sys_OcelotGateway")]
    public class OcelotGateway : BaseEntity
    {
        [StringLength(500)]
        public string Description { get; set; }

        public GatewaySys GatewaySys { get; set; }

        [StringLength(200)]
        public string UpstreamPathTemplate { get; set; }

        [StringJson]
        public List<string> UpstreamHttpMethod { get; set; }

        [StringJson]
        public List<DownstreamHostAndPortsItems> DownstreamHostAndPorts { get; set; }

        [StringLength(200)]
        public string DownstreamPathTemplate { get; set; }
    }
}
